mechanical power calculation